package com.atguigu.dao;

import com.atguigu.pojo.TomcatServiceConfig;

import java.util.List;

public interface TomcatServiceConfigDao {
    //每个方法中都带有所操作类的名字,为了以后看到这个方法,就知道是干什么的
    public int addTomcatServiceConfig(TomcatServiceConfig tomcatServiceConfig);
    public int deleteTomcatServiceConfigById(String id);
    public int updateTomcatServiceConfig(TomcatServiceConfig tomcatServiceConfig);
    public TomcatServiceConfig queryTomcatServiceConfigById(String id);
    public List<TomcatServiceConfig> queryTomcatServiceConfigs();
    public TomcatServiceConfig queryTomcatServiceConfigByServiceId(String serviceId);
    public List<TomcatServiceConfig> queryTomcatServiceConfigsByProjectModuleId(String projectModuleId);
    public List<TomcatServiceConfig> queryTomcatServiceConfigsByProjectModuleIdAndDeployEnvId(String projectModuleId,String deployEnvId);
    public Integer queryForPageTotalCount();
    public List<TomcatServiceConfig> queryForPageItems(Integer begin, Integer pageSize);
}
